package dao;

import domain.News;

import java.util.List;

public interface NewsDao {
    public List<News> getAllNews();


    /**
     * 分页查询新闻
     * @param no 第几页
     * @param size 页面大小
     * @return 新闻列表
     */
    public List<News> getNewsByNumber(int tid, int no, int size);
    public List<News> getNewsByTopic(int ntid);
    public int countNews(int tid);
    public News getNewsDetailsByNid(int nid);
    public int modifyNews(News news);
    public int addNews(News news);
    public int deleteNewsByNid(int nid);
}
